using System;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using NHibernate.Cfg;
using NHibernate.Expression;
using butterfly.metier;

/// <summary>
/// Summary description for Program
/// </summary>
namespace butterfly
{
    class Program
    {
        static void Main(string[] args)
        {
            //  1. chargement de la configuration Nhibernate , on va le faire manuellement 
            //( mais on doit le faire en principe Spring)

            Configuration configuration = new NHibernate.Cfg.Configuration();
            // createur de session : pour se connecter a la base de donnee
            ISessionFactory sessionFactory = configuration.Configure().BuildSessionFactory();

            // 2. Utilisation

            // retourne une session ouverte
            ISession session = sessionFactory.OpenSession();
            

        }
    }
	
}
